# Some extension can only be run on PHP with ZTS (Zend Thread Safe) Enabled
# Include this to your application root if needed
# There are reported issue with force: True when using file.copy; So, rename the files before moving
# Github Issue: https://github.com/saltstack/salt/issues/24647

rename phpize:
  file.rename:
    - name: /usr/bin/normal-phpize
    - source: /usr/bin/phpize
    - force: true

rename zts phpize:
  file.rename:
    - name: /usr/bin/phpize
    - source: /usr/bin/zts-phpize
    - force: true

rename php-config:
  file.rename:
    - name: /usr/bin/normal-php-config
    - source: /usr/bin/php-config
    - force: true

rename zts php-config:
  file.rename:
    - name: /usr/bin/php-config
    - source: /usr/bin/zts-php-config
    - force: true

rename php:
  file.rename:
    - name: /usr/bin/php
    - source: /usr/bin/normal-php
    - force: true

rename zts php:
  file.rename:
    - name: /usr/bin/php
    - source: /usr/bin/zts-php
    - force: true